webpackJsonp([40],{

/***/ "ev0F":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/object/assign.js
var object_assign = __webpack_require__("aA9S");
var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/dangerCheck/list.vue



//
//
//
//
//
//
//
//
//
//
//
//
//



var LEVEL = [{
  D_text: '一般隐患',
  D_code: '1'
}, {
  D_text: '重大隐患',
  D_code: '2'
}];
var STATE = {
  1: '未整改',
  3: '已整改'
};

/* harmony default export */ var list = ({
  data: function data() {
    var _this = this;

    return {
      LEVEL: LEVEL,
      STATE: STATE,
      listLevelDic: [],
      rightData: [{
        font: 'yt-icon yt-icon-search',
        click: function click() {
          _this.searchBox = !_this.searchBox;
        }
      }],
      active: [],
      items: [],
      des: '从事机械生产'
    };
  },
  activated: function activated() {
    if (this.$router.$isBack) return;
    this.items = [];
    this.refresh();
  },

  methods: {
    refresh: function refresh() {
      var _this2 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var param, items;
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                param = assign_default()({ equalTo: _this2.$route.query }, { include: ['enterprise_name'] });
                _context.next = 3;
                return _this2.$Loading(commonApi["a" /* commonApi */].search('Hidden_Trouble_Investigation', param));

              case 3:
                items = _context.sent;
                _context.next = 6;
                return commonApi["a" /* commonApi */].dictionary('hierarchy');

              case 6:
                _this2.listLevelDic = _context.sent;

                _this2.items = items;

              case 8:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this2);
      }))();
    },
    goDetailPage: function goDetailPage(item) {
      this.$router.$push({ name: '隐患详情', params: item });
    },
    getListLevelVal: function getListLevelVal(listLevel) {
      if (!this.listLevelDic.length) return;
      var item = this.listLevelDic.filter(function (item) {
        return item.D_code === listLevel;
      });
      return item[0].D_text;
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5f4dd123","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/dangerCheck/list.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":"隐患清单","scroll":""}},_vm._l((_vm.items),function(item,index){return _c('yt-card',{key:index,attrs:{"btn":"查看更多详情"},on:{"btn-click":function($event){return _vm.goDetailPage(item)}}},[_c('yt-cell',{attrs:{"border":"none","label":"检查时间","value":item.check_time}}),_vm._v(" "),_c('yt-cell',{attrs:{"border":"none","label":"检查人","value":item.check_person}}),_vm._v(" "),_c('yt-cell',{attrs:{"border":"none","label":"层级","value":_vm.getListLevelVal(item.list_level)}}),_vm._v(" "),_c('yt-cell',{attrs:{"border":"none","label":"隐患级别","value":_vm.LEVEL[item.Hidden_danger_level].D_text}}),_vm._v(" "),_c('yt-cell',{attrs:{"border":"none","label":"隐患状态","value":_vm.STATE[item.state]}}),_vm._v(" "),_c('yt-cell',{attrs:{"border":"none","label":"隐患内容","value":item.text}})],1)}),1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var dangerCheck_list = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/dangerCheck/list.vue
function injectStyle (ssrContext) {
  __webpack_require__("oOqA")
}
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5f4dd123"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  list,
  dangerCheck_list,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var anjian_dangerCheck_list = __webpack_exports__["default"] = (Component.exports);


/***/ }),

/***/ "oOqA":
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ })

});